package com.itheima.mapper;

import com.itheima.pojo.OperatorLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OperatorLogMapper {

    /**
     * 日志的分页查询
     * @return
     */
    List<OperatorLog> findByPage();
    /**
     * 添加日志
     * @param operatorLog
     */
    @Insert("insert into db_bank.tb_operator_log values(null,#{methodName},#{parameter},#{timeConsuming},#{operatorTime})")
    void addLog(OperatorLog operatorLog);


}
